package com.twu.biblioteca.models;

/**
 * Created with IntelliJ IDEA.
 * User: arvind
 * Date: 22/9/13
 * Time: 11:07 AM
 * To change this template use File | Settings | File Templates.
 */
public class User {
    private String libraryNo;
    private String name;
    private String email;
    private long phoneNo;
    private String password;

    public User(String libraryNo,String name,String email,long phoneNo,String password)
    {
        setLibraryNo(libraryNo);
        setName(name);
        setEmail(email);
        setPhoneNo(phoneNo);
        setPassword(password);
    }


    public String getLibraryNo() {
        return libraryNo;
    }

    private void setLibraryNo(String libraryNo) {
        this.libraryNo = libraryNo;
    }

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    public long getPhoneNo() {
        return phoneNo;
    }

    private void setName(String name) {
        this.name = name;
    }

    private void setEmail(String email) {
        this.email = email;
    }

    private void setPhoneNo(long phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getPassword() {
        return password;
    }

    private void setPassword(String password) {
        this.password = password;
    }

    public String  getUserDetails()
    {
       StringBuffer response=new StringBuffer();
       response.append("Name : "+getName()+"\n");
       response.append("Email : "+getEmail()+"\n");
       response.append("Phone Number : "+getPhoneNo()+"\n");

       return response.toString();

    }
}
